package com.scnu.edu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scnu.edu.entity.Movie;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 电影Mapper接口
 */
@Mapper
public interface MovieMapper extends BaseMapper<Movie> {


    /**
     * 增加播放次数
     *
     * @param id 电影ID
     * @return 影响行数
     */
    int increasePlayCount(@Param("id") Long id);
}